package com.lancoo.ccas52.mapper;

import com.lancoo.ccas52.entity.RuleRoomProhibit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas52.config.MybatisRedisCache;
import com.lancoo.ccas52.pojo.dto.ArrangeRoomRuleDto;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 教室禁排 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2023-03-24
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface RuleRoomProhibitMapper extends BaseMapper<RuleRoomProhibit> {

    /**
     * 获取教室禁排部分字段
     * @param schoolId
     * @param term
     * @param campusId
     * @return
     */
    List<ArrangeRoomRuleDto> getArrangeRoomRuleByTaskId(@Param("schoolId") String schoolId,@Param("term") String term,@Param("campusId") String campusId,@Param("collegeId") String collegeId);
}